package cn.caplike.demo.repository.design.pattern.strategy;

import cn.caplike.demo.repository.design.pattern.strategy.env.ActualStrategyA;
import cn.caplike.demo.repository.design.pattern.strategy.env.ActualStrategyB;

/**
 * 测试主类
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2020-03-14 14:27
 */
public class App {

    public static void main(String[] args) {

        System.out.print("---> 执行策略 A: ");
        new Context(new ActualStrategyA()).execute();

        System.out.print("---> 执行策略 B: ");
        new Context(new ActualStrategyB()).execute();
    }
}
